using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class EaseOut : EaseTask
    {
        public EaseOut(FiniteTime task, float rate)
            : base(task, new EaseOutFunction(rate))
        {
            this.rate = rate;
        }

        readonly float rate;

        public override Task Clone()
        {
            return new EaseOut((FiniteTime)InnerTask.Clone(), rate);
        }

        public override Task Reverse()
        {
            return new EaseIn((FiniteTime)InnerTask.Reverse(), rate);
        }
    }
}
